﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Account.aspx.cs" Inherits="FlashGameSite.FormAccount" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="content">
        <div class="block">
            <div class="block-bot">
                <div class="head">
                    <div class="head-cnt">
                        <h3>My Account</h3>
                        <div class="cl">
                        </div>
                    </div>
                </div>
            </div>
            <table style="width: 500px; height: 150px;margin: 20px;">
                <tr>
                    <td colspan="2">
                        <asp:Image ID="imgPhoto" runat="server" Height="80px" Width="80px" /></td>

                </tr>
                <tr>
                    <td>
                        <label>Select photo (*.jpeg, *.png, *.gif, *.bmp allowed)</label></td>
                    <td>
                        <asp:FileUpload ID="filePhoto" CssClass="txtcls" runat="server" />
                    </td>
                </tr>
                <tr>
                    <td colspan="2">
                        <asp:Button ID="btnUploadPic" runat="server" CssClass="btncls" Style="float: right;" Text="Upload Pic" OnClick="btnUploadPic_Click" />
                    </td>
                </tr>
            </table>
            <hr />
            <asp:UpdatePanel ID="pnlUpdateInfo" runat="server" style="margin: 20px;" UpdateMode="Always">
                <ContentTemplate>
                    <table style="width: 500px; height: 150px;">
                        <tr>
                            <td style="width: 133px">
                                <label>Name</label></td>
                            <td>
                                <asp:TextBox ID="txtName" CssClass="txtcls" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 133px">
                                <label>Email ID</label></td>
                            <td>
                                <asp:TextBox ID="txtEmailID" CssClass="txtcls" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td style="width: 133px">
                                <label>Gender</label></td>
                            <td>
                                <asp:DropDownList ID="ddlGender" CssClass="ddlcls" runat="server">
                                    <asp:ListItem></asp:ListItem>
                                    <asp:ListItem>Male</asp:ListItem>
                                    <asp:ListItem>Female</asp:ListItem>
                                </asp:DropDownList>

                            </td>
                        </tr>
                        <tr>
                            <td style="width: 133px">
                                <label>Country</label></td>
                            <td>
                                <asp:TextBox ID="txtCountry" CssClass="txtcls" runat="server"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Button ID="btnUpdateInfo" runat="server" CssClass="btncls" Style="float: right;" Text="Update Info" ValidationGroup="info" OnClick="btnUpdateInfo_Click" />
                                <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName" Display="None" ErrorMessage="Name is required" ValidationGroup="info"></asp:RequiredFieldValidator>
                                <asp:ValidationSummary ID="ValidationSummary2" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="info" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:UpdatePanel>
            <hr />
            <asp:UpdatePanel ID="pnlUpdatePassword" runat="server" style="margin: 20px;" UpdateMode="Always">
                <ContentTemplate>
                    <table style="width: 500px; height: 150px;">
                        <tr>
                            <td>
                                <label>Password</label></td>
                            <td>
                                <asp:TextBox ID="txtPassword" CssClass="txtcls" runat="server" TextMode="Password"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td>
                                <label>Re-enter Password</label></td>
                            <td>
                                <asp:TextBox ID="txtReenterPassword" CssClass="txtcls" runat="server" TextMode="Password"></asp:TextBox></td>
                        </tr>
                        <tr>
                            <td colspan="2">
                                <asp:Button ID="btnUpdatePwd" Style="float: right;" runat="server" CssClass="btncls" Text="Update Pwd" ValidationGroup="pass" OnClick="btnUpdatePwd_Click" />
                                <asp:RequiredFieldValidator ID="rfvPassword" runat="server" ControlToValidate="txtPassword" Display="None" ErrorMessage="Password is required" ValidationGroup="pass"></asp:RequiredFieldValidator>
                                <asp:RequiredFieldValidator ID="rfvPassword1" runat="server" ControlToValidate="txtReenterPassword" Display="None" ErrorMessage="Re-enter password" ValidationGroup="pass"></asp:RequiredFieldValidator>
                                <asp:CompareValidator ID="cvPassword" runat="server" ControlToCompare="txtPassword" ControlToValidate="txtReenterPassword" Display="None" ErrorMessage="Password mismatch" ValidationGroup="pass"></asp:CompareValidator>
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" ValidationGroup="pass" />


                            </td>
                        </tr>
                    </table>


                </ContentTemplate>
            </asp:UpdatePanel>
        </div>

    </div>
</asp:Content>
